<?php
include_once '../data/database_dal.php';

class RFQProductDAL extends DatabaseDAL
{
    function update($id, $rfqID, $product, $isInclude, $description, $plasticType, $color, $weatherStability, $effect,
                    $lightFastness, $shade, $rating, $additionalFunction, $inTime, $inUser)
    {
          $this->connect();
          $result = $this->mysqli->query("call pr_rfq_product_update('".$id."', '".$rfqID."', '".$product."', '".$isInclude."', '".$description."', '".$plasticType."', '".$color."', '".$weatherStability."', '".$effect."', '".$lightFastness."', '".$shade."', '".$rating."', '".$additionalFunction."', '".$inTime."', '".$inUser."')");
          if ($this->mysqli->errno) {
              die($this->mysqli->error);
          }
          $this->close();
          return $result;
        }
}
?>
